# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: main.py
# Time: 14:28

import sys
from crm.run import Run


"""
run all case:
    python3 run.py

run one module case:
    python3 run.py test/test_demo.py

run case with key word:
    python3 run.py -k <keyword>
run class case:
    python3 run.py  test/test_demo.py::Test_demo
run class::method case:
    python3 run.py  test/test_demo.py::Test_demo::test_home
"""


if __name__ == '__main__':


    # platform=Conf().androidname  #android  or  ios

    run=Run()


    # 获取命令行参数中的用例执行作用域
    run.exec(sys.argv[1:]) # 从外部获取数据

    # 生成HTML（allure）测试报告
    run.generate_report()
